<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8"/>
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <title>运单详细信息</title>
        <link rel="stylesheet" href="/css/weixin/jquery.mobile-1.2.1.min.css" />
        <script src="/js/weixin/jquery-1.8.3.min.js"></script>
        <script src="/js/weixin/jquery.mobile-1.2.1.min.js"></script>
    </head>
    <body>
        <div data-role="page" id="page1">
            <div data-role="content">
                <div class="ui-grid-a">
                    <div class="ui-block-a">
                        运单编号
                    </div>
                    <div class="ui-block-b">
                        <?php echo $this->waybilldetail->billNo;?>
                    </div>
                    <div class="ui-block-a">
                        &nbsp;
                    </div>
                    <div class="ui-block-b">
                        &nbsp;
                    </div> 
                    <div class="ui-block-a">
                        提交时间
                    </div>
                    <div class="ui-block-b">
                         <?php echo $this->waybilldetail->dateCreated;?>
                    </div>
                    <div class="ui-block-a">
                        &nbsp;
                    </div>
                    <div class="ui-block-b">
                        &nbsp;
                    </div> 
                    <div class="ui-block-a">
                        运送方式
                    </div>
                    <div class="ui-block-b">
                       <?php echo $this->waybilldetail->ExpressBy->Name;?>
                    </div>
                    <div class="ui-block-a">
                        &nbsp;
                    </div>
                    <div class="ui-block-b">
                        &nbsp;
                    </div> 
                    <div class="ui-block-a">
                        物品净重
                    </div>
                    <div class="ui-block-b">
                         <?php echo $this->waybilldetail->productWeight; ?> &nbsp;g
                    </div>
                    <div class="ui-block-a">
                        &nbsp;
                    </div>
                    <div class="ui-block-b">
                        &nbsp;
                    </div> 
                    <div class="ui-block-a">
                        预付重量
                    </div>
                    <div class="ui-block-b"> 
                        <?= $this->waybilldetail->Weight ?>g
                                 <?php   $this->waybilldetail->IsVolume?'(按预估体积重量)':'(按预估包裹重量)' ?>
                    </div>
                    <div class="ui-block-a">
                        &nbsp;
                    </div>
                    <div class="ui-block-b">
                        &nbsp;
                    </div> 
                    <div class="ui-block-a">
                        预付运费
                    </div>
                    <div class="ui-block-b">
                        ￥<?= $this->waybilldetail->getFeeByType(Application_Model_FeeType::EstimateShipFee) ?>
                        （多收金额会退至您的帐户）</div>
                    <div class="ui-block-a">
                        &nbsp;
                    </div>
                    <div class="ui-block-b">
                        &nbsp;
                    </div> 
                    <div class="ui-block-a">
                        <?= $this->waybilldetail->ExpressBy->Name ?>单号：
                    </div>
                    <div class="ui-block-b">
                        <?= $this->waybilldetail->logistics?$this->waybilldetail->logistics :'待定' ?>
                    </div>
                    <div class="ui-block-a">
                        &nbsp;
                    </div>
                    <div class="ui-block-b">
                        &nbsp;
                    </div> 
                    <div class="ui-block-a">
                        发货日期
                    </div>
                    <div class="ui-block-b">
                   <?= $this->waybilldetail->DateSend?$this->waybilldetail->DateSend:'未发货' ?> 
                    </div>
                    <div class="ui-block-a">
                        &nbsp;
                    </div>
                    <div class="ui-block-b">
                        &nbsp;
                    </div> 
                    <div class="ui-block-a">
                        实际结算重量
                    </div>
                    <div class="ui-block-b">
                       <?php if($this->waybilldetail->LastWeight || $this->waybilldetail->LastVolumeWeight){
                                    echo ($this->waybilldetail->IsVolume?$this->waybilldetail->LastVolumeWeight:$this->waybilldetail->LastWeight).'g';
                                    echo ($this->waybilldetail->IsVolume?' (按体积重量)':'（按实际重量）');
                                }else{
                                    echo '等待发包测量';
                                }
                                ?>
                    </div>
                    <div class="ui-block-a">
                        &nbsp;
                    </div>
                    <div class="ui-block-b">
                        &nbsp;
                    </div> 
                    <div class="ui-block-a">
                        实际支付金额
                    </div>
                    <div class="ui-block-b">
                     <?= $this->waybilldetail->LastMoney?'￥'.$this->waybilldetail->LastMoney:'待定' ?>
                                    <?= $this->waybilldetail->RefundMoney?"(退款￥". $this->waybilldetail->RefundMoney .")":'' ?> 
                    </div> 
                </div>

                <a data-role="button" href="/weixin/waybill?fromusername=<?php echo $this->fromusername; ?>">
                    返 回
                </a>
            </div>
        </div>
    </body> 
</html>